const state = {
  device: "desktop",
  coordinate: {},
  yewuValue: null,
  zongValue: [''],
  dateValue: "",
  dateValue2: ""
};

const mutations = {
  TOGGLE_DEVICE: (state, device) => {
    state.device = device;
  },
  getCoordinate: (state, data) => {
    // console.log(8888, data)
    state.coordinate = data;
  },
  setYewuValue: (state, data) => {
    state.yewuValue = data;
  },
  setZongValue: (state, data) => {
    state.zongValue = data
  },
  setDateValue: (state, data) => {
    state.dateValue = data
  },
  setDateValue2: (state, data) => {
    state.dateValue2 = data

  }
};

const actions = {
  toggleDevice({
    commit
  }, device) {
    commit("TOGGLE_DEVICE", device);
  },
};

export default {
  // namespaced: true,
  state,
  mutations,
  actions,
};